/*

Summary:
Button class.

Remark:
None.

Version:
0.0.2

LastUpdatedDate:
2012-09-21

*/

#pragma once

#include "ButtonWindow.h"



namespace Zaf {
namespace Mwl {



class Button : public ButtonWindow {

public:
	Button();
	explicit Button(WORD id);
	virtual ~Button();

	bool IsDefault() const;
	void IsDefault(bool value);

protected:

private:
	void CommonConstructor();
};


inline void Button::CommonConstructor() {
	SetButtonType(BS_PUSHBUTTON);
}

inline bool Button::IsDefault() const {
	return HasStyle(BS_DEFPUSHBUTTON);
}

inline void Button::IsDefault(bool value) {
	ChangeStyle(BS_DEFPUSHBUTTON, value);
	ChangeStyle(BS_PUSHBUTTON, !value);
}


}
}

